package cn.myjerry.memento;

public class EmpMemento {
	private String Name;
	private int Age;
	private double Salary;
	public EmpMemento(Emp emp) {
		this.Name = emp.getName();
		this.Age = emp.getAge();
		this.Salary = emp.getSalary();
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public int getAge() {
		return Age;
	}
	public void setAge(int age) {
		Age = age;
	}
	public double getSalary() {
		return Salary;
	}
	public void setSalary(double salary) {
		Salary = salary;
	}
}
